package com.event.usc.dto;

import java.text.SimpleDateFormat;
import java.util.Date;

public class EventDT {
	
	private long id;
	private String title;
	private String summary;
	private String image;
	private String category;
	private String buildingCode;
	private String buildingName;
	private String address;
	private double lat;
	private double lng;
	private String start;
	private String end;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getBuildingCode() {
		return buildingCode;
	}
	public void setBuildingCode(String buildingcode) {
		this.buildingCode = buildingcode;
	}
	public String getBuildingName() {
		return buildingName;
	}
	public void setBuildingName(String buildingname) {
		this.buildingName = buildingname;
	}
	public String getAddress() {
		return address;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public double getLat() {
		return lat;
	}
	public void setLat(double lat) {
		this.lat = lat;
	}
	public double getLng() {
		return lng;
	}
	public void setLng(double lng) {
		this.lng = lng;
	}
	public String getStart() {
		return start;
	}
	public void setStart(String start) {
		this.start = start;
	}
	public String getEnd() {
		return end;
	}
	public void setEnd(String end) {
		this.end = end;
	}
	
	public static String dateString(long date) {
		Date day = new Date(date);
		String pattern = "yyyy-MM-dd HH:mm:ss";
		SimpleDateFormat format = new SimpleDateFormat(pattern);
		return format.format(day);
	}
}
